package com.wym.lottery.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Ticket {
	//主键id
	private int id;
	//购买的号码
	private String num;
	//金额
	private String money;
	//购买时间
	private String time;
	//期号
	private String scope;
	//号码类型
	private String type;
	//赔率
	private String odds;
	//是否中奖
	private int state;

	//将号码插入数据库中所用到的构造方法
	public Ticket(String num, String money, String scope, String type,String odds) {
		super();
		this.num = num;
		this.money = money;
		this.scope = scope;
		this.type = type;
		this.odds=odds;
		this.time = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date());
	}
	

	public String getNum() {
		return num;
	}

	public String getMoney() {
		return money;
	}


	public String getTime() {
		return time;
	}


	public String getScope() {
		return scope;
	}


	public String getType() {
		return type;
	}


	public String getOdds() {
		return odds;
	}


	public int getState() {
		return state;
	}

	

}
